package com.hz.Tech2Real.yeyouwang.dao;

import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;

public class Tech2RealDao {
	private static final String driver = "com.mysql.jdbc.Driver";
	private static final String url = "jdbc:mysql://localhost:3306/tech2real";
	private static final String user = "root";
	private static final String PASSWORD = "root";
	
	Connection conn = null;
	PreparedStatement ps = null;
	ResultSet rs = null;
	
	public int Userinfo(){
		int D=0;
		String sql ="INSERT INTO uesr_info(phone,`password`)VALUES(?,MD5(?))";
		
		try {
//			Class.forName(driver);
			ps=conn.prepareStatement(sql);
//			ps.setArray(parameterIndex, x);
		} catch (SQLException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}

		return 0;
	}

}
